//
//  XLCarPlateKeyBoardDefine.h
//  XLCarPlateInputViewDemo
//
//  Created by ilongge on 2022/8/1.
//

#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self;
#define StrongSelf(strongSelf) __strong __typeof(&*self) strongSelf = weakSelf;

typedef void(^EmptyBlock)(void);

typedef void(^IntBlock)(int intValue);

typedef void(^NSIntegerBlock)(NSInteger integerValue);

typedef void(^FloatBlock)(float floatValue);

typedef void(^CGFloatBlock)(CGFloat CGFloatValue);

typedef void(^NSStringBlock)(NSString *stringValue);


typedef NS_ENUM(NSInteger, XLCarPlateKeyBoradType) {
    XLCarPlateKeyBoradTypeProvince,
    XLCarPlateKeyBoradTypeAbcUppercase,
    XLCarPlateKeyBoradTypeNumberAbcUppercase,
};

#define UIColorFromHexAlpha(hex ,a) [UIColor colorWithRed:((float)((hex &0xFF0000)>>16))/255.0 green:((float)((hex &0xFF00)>>8))/255.0 blue:((float)(hex &0xFF))/255.0 alpha:a]

#define UIColorFromHex(hex) UIColorFromHexAlpha(hex, 1)

#define NewEnergyResources @"新能源"
